
package com.be.beadmin.material.repository;

import com.be.beadmin.material.entity.PurchaseOrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author zmy
* @date 2023-05-14
**/
public interface PurchaseOrderDetailRepository extends JpaRepository<PurchaseOrderDetail, String>,JpaSpecificationExecutor<PurchaseOrderDetail> {

    PurchaseOrderDetail findPurchaseOrderDetailByIdAndDelete(String id, Integer delete);

    PurchaseOrderDetail findPurchaseOrderDetailById(String id);

    List<PurchaseOrderDetail> findPurchaseOrderDetailsByPoIdentificationAndDelete(String poId, Integer delete);

}